package com.ruibang.glass.portal.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ruibang.glass.common.domain.SuperviseNotice;
import com.ruibang.glass.portal.domain.NoticeReq;
import com.ruibang.glass.portal.entity.Notice;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 通知公告 Mapper 接口
 * </p>
 *
 * @author 此代码为自动生成
 * @since 2019-11-12
 */

public interface NoticeMapper extends BaseMapper<Notice> {
    List<Notice> queryNotices(IPage<Notice> page, @Param("notice") NoticeReq noticeReq);

    List<Notice> queryHistoryNotices(@Param("notice") NoticeReq noticeReq);

    List<SuperviseNotice> queryNoticeByBusinessIds(@Param("ids") List<String> ids);

    List<Notice> querySuperviseNotice(@Param("userId") String userId);

    Integer getSuperviseTimes(@Param("businessId") String businessId);
}
